Algorithms..::ToString<(Of <T>)> Method (IEnumerable<(Of <T>)>, Boolean, String, String, String) |
See Also |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a string representation of the elements in the collection.
The string to used at the beginning and end, and to separate items,
and supplied by parameters. Each item in the collection is
converted to a string by calling its ToString method (null is represented by "null").
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static string ToString<T>( IEnumerable<T> collection, bool recursive, string start, string separator, string end ) |
Visual Basic (Declaration) |
---|
Public Shared Function ToString(Of T) ( _ collection As IEnumerable(Of T), _ recursive As Boolean, _ start As String, _ separator As String, _ end As String _ ) As String |
Visual C++ |
---|
public: generic<typename T> static String^ ToString ( IEnumerable<T>^ collection, bool recursive, String^ start, String^ separator, String^ end ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
A collection to get the string representation of.
- recursive
- Boolean
If true, contained collections (except strings) are converted to strings by a recursive call to this method, instead of by calling ToString.
- start
- String
The string to appear at the beginning of the output string.
- separator
- String
The string to appear between each item in the string.
- end
- String
The string to appear at the end of the output string.
Return Value
The string representation of the collection. If collection is null, then the string "null" is returned.Type Parameters
- T
Exceptions
Exception | Condition |
---|---|
System..::ArgumentNullException | start, separator, or end is null. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace